<include file="Public/head" />

<body>
	<style type="text/css">
		table{
			width: 70%;
			margin: 20px auto;
		}
		table td{
			border:1px solid #ccc;
			padding: 10px 2px;
			vertical-align: middle;
			text-align: center;
			font-size:14px;
			color: #333 
		}
	</style>
	
	<div class="panel admin-panel">
		<div class="panel-head"><strong><span class="icon-pencil-square-o"></span> {:L('shouquangl')}</strong></div>
		<div class="body-content">
			<if condition="$info">
			<table border="1" cellspacing="0" cellpadding="0">
				<tr>
					<td><b>{:L('shouquannichen')}</b></td><td>{$info['nick_name']}</td>
					<td colspan="2">
						<if condition="$info['state'] eq 1"><font color="green">{:L('shouquan01')}</font>
						<elseif condition="$info['state'] eq 2"/><font color="blue">{:L('shouquan02')}</font>
						<else /><font color="red">{:L('shouquan00')}</font></if>
					</td>
				</tr>
				<tr>
					<td><b>{:L('shouquanname')}</b></td><td>{$info['principal_name']}</td>
					<td><b>{:L('shouquanrenzheng')}</b></td><td><if condition="$info['verify_type_info'] eq -1">{:L('shouquanwrz')}<elseif condition="$info['verify_type_info'] eq 0"/>{:L('shouquanwxrz')}</if></td>
				</tr>
				<tr>
					<td><b>{:L('shouquantouxiang')}</b></td><td><empty name="info['head_img']"><img src="__PUBLIC__/images/zanwu.jpg" height="100px" /><else /><img src="{$info['head_img']}" height="100px" /></empty></td>
					<td><b>{:L('shouquanewm')}</b></td><td><empty name="info['qrcode_url']"><img src="__PUBLIC__/images/zanwu.jpg" height="100px" /><else /><img src="{$info['qrcode_url']}" height="100px" /></empty></td>
				</tr>
				<tr>
					<td><b>{:L('shouquanid')}</b></td><td>{$info['user_name']}</td>
					<td><b>{:L('shouquanappid')}</b></td><td>{$info['authorizer_appid']}</td>
				</tr>
				<tr><td><b>{:L('shouquanjieshao')}</b></td><td colspan="3">{$info['signature']}</td></tr>
				<tr><td colspan="4">
					<if condition="$info['state'] eq 1">
					<a class="button bg-main icon-check-square-o" href="{:U('Accredit/manager')}"> 管理小程序</a>　
					<a class="button bg-main icon-check-square-o" href="{:U('Accredit/adminer')}"> 绑定体验者</a>　
					</if>
					<a class="button bg-red icon-check-square-o" href="{$buttonurl}"> {:L('reshouquan')}</a>
				</td></tr>
			</table>
			<else />
			<table border="1" cellspacing="0" cellpadding="0">
				<tr><td><a class="button bg-main icon-check-square-o" href="{$buttonurl}"> {:L('shouquan')}</a></td></tr>
			</table>
			</if>
		</div>
	</div>
	
</body>

</html>